package com.ruoyi.system.domain.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eic.framework.core.annotation.InsertTime;
import com.eic.framework.core.annotation.InsertUser;
import com.eic.framework.core.annotation.UpdateTime;
import com.eic.framework.core.annotation.UpdateUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 字典数据对象 sys_dict_data
 *
 * @author 尹国春
 * @date 2022-07-22
 */
@ApiModel("字典数据对象")
@TableName("sys_dict_data")
public class SysDictData implements Serializable
{
    private static final long serialVersionUID = 1L;

    /**  */
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "dict_code",type = IdType.ASSIGN_ID)
    private String dictCode;

    /** 字典类型 */
    @ApiModelProperty(value = "字典类型")
    @TableField("type_id")
    private String typeId;

    /** 字典排序 */
    @Excel(name = "字典排序")
    @ApiModelProperty(value = "字典排序")
    @TableField("dict_sort")
    private Long dictSort;

    /** 字典标签 */
    @Excel(name = "字典标签")
    @ApiModelProperty(value = "字典标签")
    @TableField("dict_label")
    private String dictLabel;

    /** 字典键值 */
    @Excel(name = "字典键值")
    @ApiModelProperty(value = "字典键值")
    @TableField("dict_value")
    private String dictValue;

    /** 样式属性（其他样式扩展） */
    @Excel(name = "样式属性")
    @ApiModelProperty(value = "样式属性（其他样式扩展）")
    @TableField("css_class")
    private String cssClass;

    /** 表格回显样式 */
    @Excel(name = "表格回显样式")
    @ApiModelProperty(value = "表格回显样式")
    @TableField("list_class")
    private String listClass;

    /** 是否默认（Y是 N否） */
    @Excel(name = "是否默认")
    @ApiModelProperty(value = "是否默认（Y是 N否）")
    @TableField("is_default")
    private String isDefault;

    /** 状态（0正常 1停用） */
    @ApiModelProperty(value = "状态（0正常 1停用）")
    @TableField("status")
    private String status;

    /** 创建者 */
    @ApiModelProperty(hidden = true)
    @TableField("create_by")
    @InsertUser
    private String createBy;

    /** 创建时间 */
    @ApiModelProperty(hidden = true)
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @InsertTime
    private Date createTime;

    /** 更新者 */
    @ApiModelProperty(hidden = true)
    @TableField("update_by")
    @UpdateUser
    private String updateBy;

    /** 更新时间 */
    @ApiModelProperty(hidden = true)
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @UpdateTime
    private Date updateTime;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    public SysDictData setDictCode(String dictCode)
    {
        this.dictCode = dictCode;
        return this;
    }
    public String getDictCode()
    {
        return dictCode;
    }
    public SysDictData setDictSort(Long dictSort)
    {
        this.dictSort = dictSort;
        return this;
    }
    public Long getDictSort()
    {
        return dictSort;
    }
    public SysDictData setDictLabel(String dictLabel)
    {
        this.dictLabel = dictLabel;
        return this;
    }
    public String getDictLabel()
    {
        return dictLabel;
    }
    public SysDictData setDictValue(String dictValue)
    {
        this.dictValue = dictValue;
        return this;
    }
    public String getDictValue()
    {
        return dictValue;
    }
    public SysDictData setTypeId(String typeId)
    {
        this.typeId = typeId;
        return this;
    }
    public String getTypeId()
    {
        return typeId;
    }
    public SysDictData setCssClass(String cssClass)
    {
        this.cssClass = cssClass;
        return this;
    }
    public String getCssClass()
    {
        return cssClass;
    }
    public SysDictData setListClass(String listClass)
    {
        this.listClass = listClass;
        return this;
    }
    public String getListClass()
    {
        return listClass;
    }
    public SysDictData setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
        return this;
    }
    public String getIsDefault()
    {
        return isDefault;
    }
    public SysDictData setStatus(String status)
    {
        this.status = status;
        return this;
    }
    public String getStatus()
    {
        return status;
    }
    public SysDictData setCreateBy(String createBy)
    {
        this.createBy = createBy;
        return this;
    }
    public String getCreateBy()
    {
        return createBy;
    }
    public SysDictData setCreateTime(Date createTime)
    {
        this.createTime = createTime;
        return this;
    }
    public Date getCreateTime()
    {
        return createTime;
    }
    public SysDictData setUpdateBy(String updateBy)
    {
        this.updateBy = updateBy;
        return this;
    }
    public String getUpdateBy()
    {
        return updateBy;
    }
    public SysDictData setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
        return this;
    }
    public Date getUpdateTime()
    {
        return updateTime;
    }
    public SysDictData setRemark(String remark)
    {
        this.remark = remark;
        return this;
    }
    public String getRemark()
    {
        return remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.SHORT_PREFIX_STYLE)
                .append("dictCode", getDictCode())
                .append("dictSort", getDictSort())
                .append("dictLabel", getDictLabel())
                .append("dictValue", getDictValue())
                .append("typeId", getTypeId())
                .append("cssClass", getCssClass())
                .append("listClass", getListClass())
                .append("isDefault", getIsDefault())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
